package com.wendy.read.member.controller;

import com.wendy.read.member.service.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EmailController {

    @Autowired
    private EmailService emailService;

    @RequestMapping("/send")
    public Boolean send(){
        String to = "dirham.koo@qq.com";

        String title = "测试邮件";

        String content = "梦想还是要有的，万一实现了呢！";

        return emailService.send(to, title, content);
    }
}
